package com.example.s09thymeleaf.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.Date;

@Controller
public class NumberController {
    @GetMapping("/number")
    public String showNumber(Model model){
        model.addAttribute("num1",123.4567);
        model.addAttribute("date1",new Date());
        model.addAttribute("str1","adcbd");
        return "number";

    }
}
